﻿namespace CsharpPro._1030;

public class Student
{
    // 学生的属性

    private String Name
    {
        get
        {
            return Name;
        }
        set
        {
            Name = value;
        }
    }

    private int Age
    {
        get
        {
            return Age;
        }
        set
        {
            Age = value;
        }
    }

    private string StudentId
    {
        get
        {
            return StudentId;
        }
        set
        {
            Name = value;
        }
    }

    private double Gpa
    {
        get
        {
            return Gpa;
        }
        set
        {
            Gpa = value;
        }
    }

    public Student()
    {

    }

    // 构造函数，用于初始化学生对象
    public Student(string name, int age, string studentId, double gpa)
    {
        this.Name = name;
        this.Age = age;
        this.StudentId = studentId;
        this.Gpa = gpa;
    }
}